package com.zl.Exceptions;

import org.springframework.http.HttpStatus;

import static org.springframework.http.HttpStatus.BAD_REQUEST;

/**
 * 异常处理
 */
public class RequestException extends RuntimeException {

    private Integer status = BAD_REQUEST.value();

    public RequestException(String msg){
        super(msg);
    }

    public RequestException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }
}
